<!--Descriptive page name, messages and instructions-->
<h2><%= ts('Archive Settings') %></h2>
<!--/descriptions-->

<!--main content-->
<%= form_for @admin_setting, :url => admin_setting_path(@admin_setting), :html => {:method => :put} do |f| %>
  <%= error_messages_for @admin_setting %>
  <dl>
    <dt><%= f.label :account_creation_enabled, "Account Creation Enabled (Can people create accounts without an invitation?)" %>
</dt>
    <dd><%= f.check_box :account_creation_enabled %> </dd>
    <dt><%= f.label :invite_from_queue_enabled, "Invite from Queue Enabled
(Can people add themselves to the queue and are invitations sent out automatically?)" %>
</dt>
    <dd><%= f.check_box :invite_from_queue_enabled %></dd>
    <dt><%= f.label :invite_from_queue_number, "Number of people to invite from the queue at once:" %> </dt>
    <dd><%= f.text_field :invite_from_queue_number, :size => "3" %></dd>
    <dt><%= f.label :invite_from_queue_frequency, "How often (in days) should we invite people from the queue:" %></dt>
    <dd><%= f.text_field :invite_from_queue_frequency, :size => "3" %></dd>
    <dt><%= f.label :days_to_purge_unactivated, "How much time (in days) do you have for activating your account before we purge it:" %> </dt>
    <dd><%= f.text_field :days_to_purge_unactivated, :size => "3" %></dd>
    <dt><%= f.label :suspend_filter_counts, "Suspend some filter tracking due to high posting volume" %></dt>
    <dd><%= f.check_box :suspend_filter_counts %> </dd>
    <dt><%= f.label :tag_wrangling_off, "Turn off tag wrangling for non-admins" %></dt>
    <dd><%= f.check_box :tag_wrangling_off %></dd>
    <dt><%= f.label :guest_downloading_off, "Turn off downloading for guests" %></dt>
    <dd><%= f.check_box :guest_downloading_off %></dd>
    <dt><%= f.label :enable_test_caching, "Turn on caching (currently experimental)" %></dt>
    <dd><%= f.check_box :enable_test_caching %> </dd>
    <dt><%= f.label :cache_expiration, "How often (in minutes) should we refresh caching:" %></dt>
    <dd><%= f.text_field :cache_expiration, :size => "3" %></dd>

</dl>
    <p><%= f.hidden_field :last_updated_by, :value => current_admin.id %></p>
    <p class="submit"><%= f.submit 'Update' %></p>
<% end %>
<hr class="clear" />
  <% if @admin_setting.invite_from_queue_enabled? %>
  <p><%= @admin_setting.invite_from_queue_number %> people are scheduled to be sent invitations on
  <%= l(@admin_setting.invite_from_queue_at.to_date, :format => :long) %>.</p>

  <p>(The automatic task that invites people from the queue only runs once a day. Don't be alarmed if the date you see is yesterday's.
  Do be alarmed if the date you see is more than one day in the past and the queue is supposed to be active.)</p>
  <% end %>

<p>Last updated on <%= @admin_setting.updated_at %> by <%= @admin_setting.last_updated ? @admin_setting.last_updated.login : "---" %>.</p>
<!--/content-->
